/******************************************************************************
 * Filename    : SMDRequest.java
 * Author      : LEOH.LEUNG
 * Date Created: 2012-07-16
 * Content     : Definition of ...
 * (c) Copyright XML Asia Limited 2012. All rights reserved.
 * No part of this program may be photocopied reproduced or translated to
 * another program language without prior written consent of XML Asia Limited
 ******************************************************************************/

package com.xmlasia.web.smd;

import java.util.Map;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;

/**
 * 
 * JSON entity mapping 
 * 
 * {"id":0,"method":"fetch","params":{"query":"dojo"},"jsonrpc":"2.0"} 
 * 
 * @author LEOH.LEUNG
 *
 */
@JsonIgnoreProperties(ignoreUnknown=true)
public class SMDRequest {
	
	@JsonProperty(value="id")
	private Long id;
	
	@JsonProperty(value="jsonrpc")
	private String jsonrpc;

	@JsonProperty(value="service")
	private String service;
	
	@JsonProperty(value="method")
	private String method;
	
	@JsonProperty(value="params")
	private Map<String, Object> params;

	public SMDRequest() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getJsonrpc() {
		return jsonrpc;
	}

	public void setJsonrpc(String jsonrpc) {
		this.jsonrpc = jsonrpc;
	}

	public String getService() {
		return service;
	}

	public void setService(String service) {
		this.service = service;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public Map<String, Object> getParams() {
		return params;
	}

	public void setParams(Map<String, Object> params) {
		this.params = params;
	}

}
